import Vue from 'vue';
import Vuex from 'vuex';
import sys from './modules/sys';
import user from './modules/user';
import permission from './modules/permission';
import btnPermission from './modules/btnPermission';
import getters from './getters';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    sys,
    user,
    permission,
    btnPermission
  },
  getters
});

export default store;
